﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace Obra.SmugMug.Api
{
    [ServiceContract]
    [XmlSerializerFormat]
    public interface ISmugMugSession
    {
        [OperationContract]
        [WebGet(UriTemplate = UriTemplates.Session.LoginWithPassword)]
        LoginWithPasswordContract LoginWithPassword(
            string emailAddress,
            string password,
            string apiKey);

        [OperationContract]
        [WebGet(UriTemplate = UriTemplates.Session.Logout)]
        void Logout(
            string sessionId);
    }
}
